//
//  ChatBottomView.h
//  BaiYing_Thinker
//
//  Created by 鹏 朱 on 15/10/29.
//  Copyright (c) 2015年 XKJH. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "FileMangeHelper.h"

@class RecordView;

typedef void (^SendMessageBlock)(NSString *,UploadFileType);
typedef void (^StartIFlySpeechBlock)(NSString*,UploadFileType,NSString *,NSString *,CGSize);
typedef void (^RecordFinishBlock)(NSTimeInterval);
typedef void (^AddPictureBlock)(UIImage *);

@interface ChatBottomView : UIView <UITextFieldDelegate>

@property(nonatomic, strong) UIView *textBackgroundView;
@property(nonatomic, strong) UIView *voiceBackgroundView;

@property(nonatomic, strong) UIButton *changeTextBtn;
@property(nonatomic, strong) UIButton *recordBtn;
@property(nonatomic, strong) UIButton *settingBtn;
@property(nonatomic, strong) UIButton *changeVoiceBtn;
@property(nonatomic, strong) UITextField *inputTextField;
@property(nonatomic, strong) UIButton *sendBtn;
@property(nonatomic, strong) RecordView *recordView;
@property (nonatomic,copy) SendMessageBlock sendMessageBlock;
@property (nonatomic,copy) RecordFinishBlock recordFinishBlock;
@property (nonatomic,copy) StartIFlySpeechBlock  startIFlySpeechBlock;
@property (nonatomic,copy) AddPictureBlock addPictureBlock;

- (id)initWithFrame:(CGRect)frame sendMessageBlock:(SendMessageBlock)messageBlock recordFinishBlock:(RecordFinishBlock)recordFinishBlock sartIFlySpeechBlock:(StartIFlySpeechBlock)startIFlySpeechBlock addPictureBlock:(AddPictureBlock)addPictureBlock;

@end
